﻿using System;
using Mono.Cecil;

namespace EzDeploy.Core
{
    public static class CecilUtility
    {
        public static string ToFriendlyName(TargetRuntime runtime)
        {
            switch(runtime)
            {
                case TargetRuntime.Net_1_0:
                    return ".NET 1.0";
                case TargetRuntime.Net_1_1:
                    return ".NET 1.1";
                case TargetRuntime.Net_2_0:
                    return ".NET 2.0";
                case TargetRuntime.Net_4_0:
                    return ".NET 4.0";
                default:
                    throw new NotImplementedException();
            }
        }
    }
}
